package org.agile2soft.nexoma.core.controller.impl;

import java.util.List;

import org.agile2soft.nexoma.core.controller.ProfileController;
import org.agile2soft.nexoma.core.dao.ProfileDAO;
import org.agile2soft.nexoma.core.entity.Profile;

import br.com.arsmachina.controller.impl.SpringControllerImpl;

public class ProfileControllerImpl extends SpringControllerImpl<Profile, Integer> implements ProfileController {

    private ProfileDAO profileDAO;

    public ProfileControllerImpl(ProfileDAO profileDAO) {
        super(profileDAO);
        this.profileDAO = profileDAO;
    }

    public List<Profile> findByName(String name) {
        return profileDAO.findByName(name);
    }


}
